package com.ys.entity.storage;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_DisassembleByHand", catalog="Id")
public class TccDisassembleByHand extends BaseEntity<TccDisassembleByHand> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="EffectStock", nameJava="effectStock", typeDataBase="bit")
	private Integer effectStock;
	@YsField(nameDataBase="CreateChangeId", nameJava="createChangeId", typeDataBase="bigint")
	private Long createChangeId;
	@YsField(nameDataBase="Vgsbm", nameJava="vgsbm", typeDataBase="varchar")
	private String vgsbm;
	@YsField(nameDataBase="ProductCode", nameJava="productCode", typeDataBase="varchar")
	private String productCode;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="StockControlId", nameJava="stockControlId", typeDataBase="bigint")
	private Long stockControlId;
	@YsField(nameDataBase="Chw", nameJava="chw", typeDataBase="varchar")
	private String chw;
	@YsField(nameDataBase="DisassembleNum", nameJava="disassembleNum", typeDataBase="int")
	private Integer disassembleNum;
	@YsField(nameDataBase="DisassembleAmount", nameJava="disassembleAmount", typeDataBase="decimal")
	private BigDecimal disassembleAmount;
	@YsField(nameDataBase="ChwNum", nameJava="chwNum", typeDataBase="int")
	private Integer chwNum;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccDisassembleByHand setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TccDisassembleByHand setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public Integer getEffectStock() {
		return effectStock;
	}
	public TccDisassembleByHand setEffectStock(Integer effectStock) {
		this.effectStock = effectStock;
		return this;
	}
	public Long getCreateChangeId() {
		return createChangeId;
	}
	public TccDisassembleByHand setCreateChangeId(Long createChangeId) {
		this.createChangeId = createChangeId;
		return this;
	}
	public String getVgsbm() {
		return vgsbm;
	}
	public TccDisassembleByHand setVgsbm(String vgsbm) {
		this.vgsbm = vgsbm;
		return this;
	}
	public String getProductCode() {
		return productCode;
	}
	public TccDisassembleByHand setProductCode(String productCode) {
		this.productCode = productCode;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TccDisassembleByHand setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Long getStockControlId() {
		return stockControlId;
	}
	public TccDisassembleByHand setStockControlId(Long stockControlId) {
		this.stockControlId = stockControlId;
		return this;
	}
	public String getChw() {
		return chw;
	}
	public TccDisassembleByHand setChw(String chw) {
		this.chw = chw;
		return this;
	}
	public Integer getDisassembleNum() {
		return disassembleNum;
	}
	public TccDisassembleByHand setDisassembleNum(Integer disassembleNum) {
		this.disassembleNum = disassembleNum;
		return this;
	}
	public BigDecimal getDisassembleAmount() {
		return disassembleAmount;
	}
	public TccDisassembleByHand setDisassembleAmount(BigDecimal disassembleAmount) {
		this.disassembleAmount = disassembleAmount;
		return this;
	}
	public Integer getChwNum() {
		return chwNum;
	}
	public TccDisassembleByHand setChwNum(Integer chwNum) {
		this.chwNum = chwNum;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccDisassembleByHand setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccDisassembleByHand setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccDisassembleByHand setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccDisassembleByHand tccDisassembleByHand(
		String bid,
		Integer effectStock,
		Long createChangeId,
		String vgsbm,
		String productCode,
		String remark,
		Long stockControlId,
		String chw,
		Integer disassembleNum,
		BigDecimal disassembleAmount,
		Integer chwNum,
		Integer status
			) {
		TccDisassembleByHand entity = new TccDisassembleByHand();
		entity.setBid(bid);
		entity.setEffectStock(effectStock);
		entity.setCreateChangeId(createChangeId);
		entity.setVgsbm(vgsbm);
		entity.setProductCode(productCode);
		entity.setRemark(remark);
		entity.setStockControlId(stockControlId);
		entity.setChw(chw);
		entity.setDisassembleNum(disassembleNum);
		entity.setDisassembleAmount(disassembleAmount);
		entity.setChwNum(chwNum);
		entity.setStatus(status);
		return entity;
	}
}